package com.chuangshi.core.vote.admin.controller.admin.request;

import com.chuangshi.core.kit.Request;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;

/**
 * 管理员信息管理端V1获取列表的接收参数
 *
 * @author ggliming
 * @date 2019-02-21
 */
@ApiModel(description = "管理员信息管理端V1获取列表的接收参数")
public class AdminAdminV1ListRequest extends Request {

    @ApiModelProperty(value = "管理员编号", required = true, position = 10)
    @Length(max = 32, message = "管理员编号长度超出限制")
    private String adminId;

    @ApiModelProperty(value = "当前页数", required = true, position = 20)
    @NotNull(message = "当前页数不能为空")
    @Digits(integer = 11, fraction = 0, message = "分页页数长度超出限制")
    private Integer pageIndex;

    @ApiModelProperty(value = "每页显示的记录数", required = true, position = 30)
    @NotNull(message = "每页显示的记录数不能为空")
    @Digits(integer = 11, fraction = 0, message = "每页显示的记录数长度超出限制")
    private Integer pageSize;

    public String getAdminId() {
        return adminId;
    }

    public void setAdminId(String adminId) {
        this.adminId = adminId;
    }

    public Integer getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

}